import React from 'react';
import propTypes from 'prop-types'
import { classHelper } from '../utils/class'
const line = ({width, height,style,className,color}) => {
  return (
    <div className={classHelper(className)} style={{width,height,background:color,...style}}/>
  );
};

line.propTypes = {
  width:propTypes.oneOfType([
    propTypes.number,
    propTypes.string
  ]),
  height:propTypes.oneOfType([
    propTypes.number,
    propTypes.string
  ]),
  color:propTypes.string
};
line.defaultProps = {
  width:0,
  height:0,
  color:'#fff'
};

export default line;
